package com.example.appkcsj.entity;

import ohos.agp.components.element.Element;
import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Database;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;

@Entity(tableName = "Family")
public class Family extends OrmObject{
    @PrimaryKey(autoGenerate = true)
    private Integer id1;
    private String name1;
    private String name;
    private String phone;
    private String age;
    private String address;
    private String birth;

    public Family() {
    }

    public Family( String name1, String name, String phone, String age, String address, String birth) {
        this.name1 = name1;
        this.name = name;
        this.phone = phone;
        this.age = age;
        this.address = address;
        this.birth = birth;
    }

    public Integer getId1() {
        return id1;
    }

    public void setId1(Integer id1) {
        this.id1 = id1;
    }

    public String getName1() {
        return name1;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    @Override
    public String toString() {
        return "Family{" +
                "id1='" + id1 + '\'' +
                ", name1='" + name1 + '\'' +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", age='" + age + '\'' +
                ", address='" + address + '\'' +
                ", birth='" + birth + '\'' +
                '}';
    }
}
